<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
 </tr>
 </tbody>
</table>
</div>
<body bgcolor="#ffffff">
<table width="100%">
  <tr>
    <td width="30%" align="left" valign="center">
      <a href="https://github.com/open-source-parsers/jsoncpp">
      JsonCpp project page
      </a>
    </td>
    <td width="20%" align="center" valign="center">
      <a href="hierarchy.html">
        Classes
      </a>
    </td>
    <td width="20%" align="center" valign="center">
      <a href="namespace_json.html">
        Namespace
      </a>
    </td>
    <td width="30%" align="right" valign="center">
      <a href="http://open-source-parsers.github.io/jsoncpp-docs/doxygen/">JsonCpp home page</a>
    </td>
  </tr>
</table>
<hr>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_json_1_1_path.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_json_1_1_path-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Json::Path Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Experimental and untested: represents a "path" to access a node.  
 <a href="class_json_1_1_path.html#details">More...</a></p>

<p><code>#include &lt;json/value.h&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aaa37a99650e770d0cd680bf53585ec99"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_json_1_1_path.html#aaa37a99650e770d0cd680bf53585ec99">Path</a> (const std::string &amp;path, const <a class="el" href="class_json_1_1_path_argument.html">PathArgument</a> &amp;a1=<a class="el" href="class_json_1_1_path_argument.html">PathArgument</a>(), const <a class="el" href="class_json_1_1_path_argument.html">PathArgument</a> &amp;a2=<a class="el" href="class_json_1_1_path_argument.html">PathArgument</a>(), const <a class="el" href="class_json_1_1_path_argument.html">PathArgument</a> &amp;a3=<a class="el" href="class_json_1_1_path_argument.html">PathArgument</a>(), const <a class="el" href="class_json_1_1_path_argument.html">PathArgument</a> &amp;a4=<a class="el" href="class_json_1_1_path_argument.html">PathArgument</a>(), const <a class="el" href="class_json_1_1_path_argument.html">PathArgument</a> &amp;a5=<a class="el" href="class_json_1_1_path_argument.html">PathArgument</a>())</td></tr>
<tr class="separator:aaa37a99650e770d0cd680bf53585ec99"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad1abdc54d2e03fc0e9436c3b9fd55a33"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="class_json_1_1_value.html">Value</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_json_1_1_path.html#ad1abdc54d2e03fc0e9436c3b9fd55a33">resolve</a> (const <a class="el" href="class_json_1_1_value.html">Value</a> &amp;root) const</td></tr>
<tr class="separator:ad1abdc54d2e03fc0e9436c3b9fd55a33"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab65ab001ccdbc6f8b5f123da58b92539"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_json_1_1_value.html">Value</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_json_1_1_path.html#ab65ab001ccdbc6f8b5f123da58b92539">resolve</a> (const <a class="el" href="class_json_1_1_value.html">Value</a> &amp;root, const <a class="el" href="class_json_1_1_value.html">Value</a> &amp;defaultValue) const</td></tr>
<tr class="separator:ab65ab001ccdbc6f8b5f123da58b92539"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a858f9426f0f7bbe0450644d72b44e26b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_json_1_1_value.html">Value</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_json_1_1_path.html#a858f9426f0f7bbe0450644d72b44e26b">make</a> (<a class="el" href="class_json_1_1_value.html">Value</a> &amp;root) const</td></tr>
<tr class="memdesc:a858f9426f0f7bbe0450644d72b44e26b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates the "path" to access the specified node and returns a reference on the node.  <a href="#a858f9426f0f7bbe0450644d72b44e26b">More...</a><br /></td></tr>
<tr class="separator:a858f9426f0f7bbe0450644d72b44e26b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Experimental and untested: represents a "path" to access a node. </p>
<p>Syntax:</p><ul>
<li>"." =&gt; root node</li>
<li>".[n]" =&gt; elements at index 'n' of root node (an array value)</li>
<li>".name" =&gt; member named 'name' of root node (an object value)</li>
<li>".name1.name2.name3"</li>
<li>".[0][1][2].name1[3]"</li>
<li>".%" =&gt; member name is provided as parameter</li>
<li>".[%]" =&gt; index is provied as parameter </li>
</ul>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="aaa37a99650e770d0cd680bf53585ec99"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaa37a99650e770d0cd680bf53585ec99">&#9670;&nbsp;</a></span>Path()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Json::Path::Path </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_json_1_1_path_argument.html">PathArgument</a> &amp;&#160;</td>
          <td class="paramname"><em>a1</em> = <code><a class="el" href="class_json_1_1_path_argument.html">PathArgument</a>()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_json_1_1_path_argument.html">PathArgument</a> &amp;&#160;</td>
          <td class="paramname"><em>a2</em> = <code><a class="el" href="class_json_1_1_path_argument.html">PathArgument</a>()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_json_1_1_path_argument.html">PathArgument</a> &amp;&#160;</td>
          <td class="paramname"><em>a3</em> = <code><a class="el" href="class_json_1_1_path_argument.html">PathArgument</a>()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_json_1_1_path_argument.html">PathArgument</a> &amp;&#160;</td>
          <td class="paramname"><em>a4</em> = <code><a class="el" href="class_json_1_1_path_argument.html">PathArgument</a>()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_json_1_1_path_argument.html">PathArgument</a> &amp;&#160;</td>
          <td class="paramname"><em>a5</em> = <code><a class="el" href="class_json_1_1_path_argument.html">PathArgument</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a858f9426f0f7bbe0450644d72b44e26b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a858f9426f0f7bbe0450644d72b44e26b">&#9670;&nbsp;</a></span>make()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_json_1_1_value.html">Value</a> &amp; Json::Path::make </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_json_1_1_value.html">Value</a> &amp;&#160;</td>
          <td class="paramname"><em>root</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates the "path" to access the specified node and returns a reference on the node. </p>

</div>
</div>
<a id="ad1abdc54d2e03fc0e9436c3b9fd55a33"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad1abdc54d2e03fc0e9436c3b9fd55a33">&#9670;&nbsp;</a></span>resolve() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="class_json_1_1_value.html">Value</a> &amp; Json::Path::resolve </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_json_1_1_value.html">Value</a> &amp;&#160;</td>
          <td class="paramname"><em>root</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ab65ab001ccdbc6f8b5f123da58b92539"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab65ab001ccdbc6f8b5f123da58b92539">&#9670;&nbsp;</a></span>resolve() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_json_1_1_value.html">Value</a> Json::Path::resolve </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_json_1_1_value.html">Value</a> &amp;&#160;</td>
          <td class="paramname"><em>root</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_json_1_1_value.html">Value</a> &amp;&#160;</td>
          <td class="paramname"><em>defaultValue</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>include/json/<a class="el" href="value_8h.html">value.h</a></li>
<li>src/lib_json/<a class="el" href="json__value_8cpp.html">json_value.cpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.13-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespace_json.html">Json</a></li><li class="navelem"><a class="el" href="class_json_1_1_path.html">Path</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
